package com.dc.designPattern._21_strategy.extend.extend2;

/**
 * Description: 简化算法_客户端
 * @author: gdc
 * @date: 2021/6/29
 * @version 1.0
 */
public class Client {

    public static void main(String[] args){
        Calculator calculator = new Calculator();
        int a = 20;
        int b = 10;
        int result = calculator.exec(a, b, Calculator.ADD_SYMBOL);
        System.out.println("输入的参数：" + a + " | " + b);
        System.out.println("运行的结果：" + a + Calculator.ADD_SYMBOL + b + "=" + result);

    }
}
